<div id="data_page" class="in_page">
  <div class="panel panel-default">

<!--添加菜单-->
<div class="btn-group" role="group" aria-label="...">
          <a href="{:U('WxContent/add_contentindex')}"><button type="button" class="btn btn-primary">添加内容</button></a>          
</div>
</div>
</div>
      <table class="table table-bordered">
        <thead>
          <tr>
            <th><span class="glyphicon glyphicon-leaf"></span>ID</th>
            <th><span class="glyphicon glyphicon-leaf"></span>响应的菜单</th>
            <th><span class="glyphicon glyphicon-leaf"></span>说明</th>
            <th><span class="glyphicon glyphicon-leaf"></span>标题</th>
            <th><span class="glyphicon glyphicon-leaf"></span>类型</th>
            <th><span class="glyphicon glyphicon-leaf"></span>最后操作时间</th>
            <th><span class="glyphicon glyphicon-leaf"></span>操作</th>
          </tr>     
        </thead>
        <tbody>
         <volist name="list" id="data">
          <tr>
            <td>{$data['id']}</td>
            <td><if condition="$data['c_menu'] eq '10010'">不响应菜单</if><if condition="$data['c_menu'] neq '10010'">{$data['menu_name']}</if></td>
            <td>{$data['explain']}</td>
            <td>{$data['content']}</td>
            <td><if condition="$data['type'] eq 'text'">纯文本</if><if condition="$data['type'] eq 'pic'">图文</if><if condition="$data['type'] eq 'voice'">语音</if></td>
            <td>{$data['mtime']}</td>
            <td>
               <div class="btn-group" role="group" aria-label="...">
                  <a href="{:U('WxContent/update_index',array('id'=>$data['id']))}"><button type="button" class="btn btn-primary btn-xs">修改</button></a>
                  <a href="{:U('WxContent/del_content',array('id'=>$data['id']))}"  onclick="return confirm('是否确认删除？')"><button type="button" class="btn btn-danger btn-xs">删除</button></a>
               </div>
           </td>
          </tr>
        </volist>
        </tbody>
      </table> 
</div>